Set everything up ready to run.