Add check for valid operation. This allows us to do a direct call of the method by name.