Added support for creating and updating tasks.