Since we want to make this function slightly more visible for testing purposes, it needs a better name.