Added sleep command to delay script proceed