Adding arm parsing function