Code I have written in the past.