Move logging down into main()