Added config variable for mongo timeout.