Replaced all 'node' with 'mode' and 'ammoutn' with 'amount'