Work out general rules