Major refactoring to use daily historical environmental data.