added CreateTask functionality and removed functionality