Initial commit of the mark extraction code.