Added error message for NaN, stylized