Added update functionality to task, some minoj adjustements