Temporarily commented out major part of checkkey function.