Modifications to firewall chain function