Improve entrypoint to be more helpful
Fix datarace condition
Include all changes needed for historical and knownGaps processing