Changed 'key' to string