Better logic in rules. Error caught in case of lag