Added hack for missing scale functions