Fixed task allocation by creating specific method.
Fixed a bug with tasks that run locally.