Added an option to change the server port and the key