Changed struct type to key for less confusion