Hopefully this should fix _some_ of the ram issues