Change PORT var accordingly with sync option