Implemented "overwriting" functionality