Implement stdin as input