Reconfigured code for dotcloud support