Implement limits for history