Add try block around insertContent to see of exceptions are being swallowed.