Add task completion.

Closes #1.