Reformatted code so that everything is in alphabetical order and stuff