Added ingot slot logic code