Wrote some parsing code that will be useful later.