Removing unused tasks and left overs