Added setting the port through command line.