Added optimalisation to OpenCL.