Removed every last instance of zRegmax outside of an 'if datadim == 3'