Begin to HUB code