Added channel and thread management system.