Removed superfluous hashmaps.
Merge branch 'master' into improvement/less-hashmaps
Check if partitions is null as well.
Merge branch 'master' into improvement/less-hashmaps
Fixed new tasks overriding old tasks.
Fixed adding a persisted task always failing.
Better garbage check.
Merge branch 'improvement/less-hashmaps'