Correctly define and access hash elements.