This version with the -i option still has unknown issues during testing.