O(n), motherfuckers.