Add Firebase functionality