Attempting to work around sluggish output by decreasing buffer size; got rid of explicit sleep calls