Added restrict keyword, boosts perf.