Fix `parallel_for` to take commonly used parameters