First attempt at wrapping cost methods, untested