Implemented the pay command