Added constants for history size and auto-check delay. New utils.