Experiment with different cost functions