Add rule parsing.