Finishing up the parsing function

Wrapped up the parsing function. The component should work fine now.