Fixed so the file isn't overwritten