History execution with pagination