Added constructor with different type for container.