Refactored ScreenParser, now parser can be used on both sides