Cleaned up calls to getTask to fit new scheme. Also now assumes tasks have a center (which should be the case going forward)