Added chain creation and deletion