Added delay to fix inconsitency arrising due to elasticsearch