Added a parameter for making port forwarding optional