Synchroized parsing for possible thread-safety issue.