Incorporating Utter's code.