Added a mode func to Arraystuff