Implemented refill bag function