Removed duplicate getSubgroups() function, added prefixes for changed log messages