Cut off a lot of unnecessary code