Make stdGenIO function, for abstraction