This is pre-existing code, just ported to a different place.