Tests working for A, B, and C. Need to handle error codes.
Final version.