Refactroy: added IParser interface.