Added ability to indicate failure w code, reason pait