Adding parser phase and modifying the whole accordingly.
Adding dummy Error class.