Added key error catch.