Added getKey method.