Renamed override to overwrite, and fixed a bug