Added isNaN function.