Remove array temporary from friction setting function