Original subtract amount taken script merged
Renamed subtract amount taken to amount taken
Amount taken script ready to be tested, added a threshold parameter