Added functionality to optionally remove cast figures for improved speed.