Moved data proxying to a method allowing overriding
Added logging to stdout when run via main()