Make the code work correctly with the ':key=>:value' inputs