Remove configure() by moving three remaining lines to end of main