Standard functions now throw the correct exceptions