Extraction routines from steno, fixes #3