Code I wrote before 2005