Based on joriv/tasks.git.