Changed now() to NOW. Tweaked Array functions to ignore NaNs.