Rules engine work.