Added bufio for reads+writes