Now log file is first sorted by date time, and store ID from availability call is derived in a smarter and more accurate way.