Undefined variable: overwrite