Take modes by const reference