WIP
Work on reason codes