Added missing require and reorder code
Added missing require and reorder code

JamesForks/deployer,REBELinBLUE/deployer,REBELinBLUE/deployer,JamesForks/deployer,REBELinBLUE/deployer,JamesForks/deployer,REBELinBLUE/deployer,JamesForks/deployer