Code from old cvs usercode