Removing debug, fixing memory leak (Tasks weren't deleted once executed)