Added possibility to group elements