Original LD48 code.