Legacy Rheolef code of Andreas