Added final error + changed popItem to show all attributes