Able to handle symbol and string keys as well