Taking port as argument etc