Improving pagination trait for command use