Example retcode improvement

The next try. @thatch45 I'm asking for review.

This is not ready for merge, I just want to ensure I'm going in the right direction.