added 0.5seconds sleep for cpu consuming