Avoid making copies of several containers; use const references instead.