Restrict ports
Fix function name