Complete Change

I was inexperienced and the other code was too much to sift through. So
I decided to use a simple template which works just as well.