Changed Server sleep time from 30ms to 300ms. Also added a check for negative cases.