Implemented refine statement parsing.