Consolidated pull request #44 from @dbaileychess (MetaKey).