Initial code for hash add/edit