Simplify by including integration onto single module.
Introduce rules parser.