Added sleep to prevent possible risk of server crashing