Added initialization method for containers.