Added removal of old tasks entries