Added scaling off baseline calculation