Simplified the public interface of TaskService.