Added exception handling to prevent failing utterly to each and every key error.