Minor cleanup and improvements to JankyTask.