introduces a delay so that scripts waits for all updates to firebase before exiting
Merge pull request #12 from Sarith21/master

Fixes early-exit bug