Replaced conditional compilation with NAN.