Used scaling code from MonkeyPanel in other panels