Updated to support chained rules in the server