Hard version 0.5 for calc 5.1 release