Yep pipes are perfect for that situation.

Glad I could help.