Use immutable to avoid reversing the list and improve perf a little bit.