Wiring up in main.