Super janky firebase-esque functionality.