Added firebase communication (see fragment b)