Changed code formatting because I am obsessive-compulsive