Majorly modified dlploy creation script