Add parse prototype
Parse function implementation