Added a boolean var to make sure the serial conn is established before proceeding with initconf