Worked a bit more on inventory and fixed the input.