Added optional network change through an argument to client (CLI and Main) for easier testing.