Improve process and tasks subclasses handling