MinDimOut and MaxDimOut can be function_handles