Set the main to download the right time period