Parallelized task execution, fixed bug when removing multiple tasks. Closes #162.