Cost production cycle

New functions should be added at the bottom in a test!