Added optional second argument that specifies alternative file name
Don't add duplicate ignores
Unlet temp cpoptions