Should be class method and live somewhere else.