Added add cash function and enforce market closure.