-Broke out the stdio stuff into a separate template