Creating, editing and deleting loops