Got rid of the worthless code and got it to work