Made scaling configurable.