Implemented some important stuff.