- Fixed error with not saving the performed task.
- Fixed some small code-style mistakes.
- Minor code improvements.