Removed extra delete function