Implemented some rules preparation