Added ability to define custom scale