Added massExtent and particleExtent global variables