Added a calibration / sorts casting routine. Warning: untested!