Set up main stuff.