Implements the encapsulated controller code for the tasks blueprint