Hold reference to acceleration function for better performance.