Added original code from APEX1a computer