Move console check until after we know that we need to input data