Adding functions for reading gas particles