Added variable declarations and interface to rule parser.