Events and rules markup. #12