Updated constructor and added SetKeys method.