This method might be overkill, but was used in 4 places in the previous implementation.