Added scaling function still needs some work but
can only be done when we have two contorollers