Added support for creating a task