Catching NaNs to debug later.