Removed unrequired code. Also implemented a vital line of code I thought I had implemented before, which I hadn't.