Moving particle init function to setup