Initial clean up and configuration.