Fixed some bugs.
Changed some things.