Adding basic input/output support from main