Added a delay to prevent mongoDB from being hit too often when empty