Change calculation to epoch and add logging.