add sleep of 1 second.