Added port forwarding functions. Improved security.