Allow method chaining for Task object