Add new modes and remove unused ones.