Redefine gen and del tasks to be simpler