Completed precheck implementation
Verified we handle codes properly