Refactored cgroup methods