Added functioning slot-locking. Broke consolidate stacks somehow.