To find possible errors early, problematic input, such as NaNs as work, should be detected and handled.