Deleted unnecessary code and cleaned it up.