Rename mode to topology