Updated sleep command to include lock script.