Implemented executor and tasks. Only stoping behaviour is left to add