If you want to be paid all the monies up front - the agent is legally permitted to take their fees from this. This is the case legally between you and your agent.
Legally between the agent and the tenant - the agent is not entitled to their fees until such time as the tenant has "used" up...