Started to write definitions for particle functions.