Used reflection to make keys easier to maintain