Finish line generation and wrap all output into a function
Update read