Title: Planning purposeful programs