Added sleep delay