Added file to lib
Refactored so task requires date and will fail on missing data