Added precedences rules conditions and loops