Reformatted output to Firebase