Main class set up.