Changed RuntimeError to StandardError