Simplified allow rules in example code