Improved logging and enabled vertical flip for testing.