Added affinity module.