Various pointers made restricted for a slight increase in performance.