Added support for reading the store ID with fallback to random