Trying desperately to make firebase do what its supposed to do.