Implemented restarting policy. Do I need Master? Sync?
Each task as a gen_server is a better design choice.