added sleep to tasks