Adding mode as a configuration