Started work on delete function.