Added getters to make unit testing easier.