Removes extraneous console calls.