Updated Gist for to include retrieval of yesterday as needed.