Moved the sleep logic to the configure_replicaset method. Waiting up to 10 minutes for the database to start.