Added priority to tasks