Added API version check and dates cache