Added method for calling tasks

Created new method for retrieving the tasks of an application (based on existing code, minimal modifications)