Adds overwrite functionality