Started to replace getKey

Instead of a wrapper, now there is a semblance of an actual method that uses the code class