Added logic to determine when a restaurant next opens or closes.