return -1 when not initialized.