Support code for CS691F