Further work and discussion on PSO example.