Removing functions which conflict with gam()