Modify getInstances to work with EC2