Added support for optional modal size.