Finish the main logic, make it run.