Intermediate commit of nearly working srec code