Turned the code into a hash