More debug info on inventory click.
Reduced the amount of anonymous classes being created.