Adapted load generator so that it can accepts as input a load profile