Only ask for pw when console is available
Remove Gson import