How does the cost system work?