Half-baked cost implementation