Exchanged getData() with getSnapshot().