Use getters instead of accessing fields