Updated piping code

The -p option is no longer needed now.