Make max particles configurable