Add support to remove tasks.