Update code based on changes to orchestra/foundation.

Signed-off-by: crynobone <crynobone@gmail.com>