Updated the empty inv code slightly