Fix missing sleep for fast running tasks

Closes #12.