Here is my crappy code.