Added spending API.