Move getters into EC2 class.