Adding correct delete function