Added scaler function