Improved error catching, added configurable timeout, added _filterString for future use.