Write rules and policy.

#96