Added support for nested group structures
Fixed bug when group is nil
Embedded scripts