Added some inventory tracking logic