Repetition almost works. Reworked all interactions with TaskActivity to
use new Task and Instance classes. Still does too much on UI thread.