Added Resource Scaling code to Controller

To fine changes search for "New Change - Amit" in the file