Specification of rules and logic for EOW