Improve recursion depth for seq