Added createContainer method but its behavior is not entirely accurate currently.