Changed IO functions to print to screen only