Added sleep delay and additional comments