Adding action to task so it can be shown in history