Added support for EC2 instance.