Adding sleep to improve processing