Moved around some things to make a bit more sense.