Error handling. Should do more testing in this area and need to
implement Retry.