Many changes: new code for LF data etc.