Code from https://savannah.cern.ch/support/index.php?126344#comment22
Comments for newly added UCSD code.