Making this public is useful for testing