Change the port values with variables