Moved GUI stuff to the bottom.