Reorganizes all the code :)