Include cost of function call when using dict