Completed prelimimary rules matching, although 'debugger' statements are left in for now.