Added terminal reading function. Started using it for my one project of which I made it for.