Added interval option to pipe input module

Added a time interval option in pipe input module. Maybe this will be helpful for others as well.. Let me know if further enhancements should be placed here or if this is out of scope.