An attempt at allowing for auto-generation of claim codes.

Perhaps might help with #152, waiting for feedback before writing tests.