Improving casper example