Runtime control and basic IO added.