Added Firebase saving.