Add parsing part. Have bugs to be fixed.