Implemented a bunch of basic stuff.