Added logic to the HQ.