Matches task name to actual behaviour