Added code for a ThrottledInputStream