Ripped the InventoryWorkaround class from Essentials, with permission and license.