This is a re-write of SM_Hosties v1.x from dataviruset.