Switched to exceptions for error handling.