Refactor, load groups in VM