Started implementing key manager.