Ported over the Phone Code functionality