BUGFIX: Moved extremeValues method to the correct place and added the needed arguments to the call.