More check for NaN and stuffs.