Made a more general version of the elser particle