Added check to pay command