Ported design code.