Add input stream utilities.