SPP Optimisation.

Moved variable declaration to start of update function.