Added functionality to supply.
Implemented expert pattern in GainingHandler.
Resolved merge conflicts.