Added trainContainer reference