Replace System.out calls.