Applying content cost function