Updated stdio implementation to...actually work.