Needs testing of the error detail/messaging.