Why Accounts Payable is not included in Cash flow from operating activities?

The reason for subtracting accounts receivable from net income in the cash flow statement is that though the revenue is recognised, cash is not received. Same logic holds true for accounts payable as expenses are recognised but cash is yet to be paid.