Added PSO routines