Fixes for most of the structure user functions - the pipe check is now performed at the start.
Authored by: bugman 2012-05-11
Parent: [r16245]
Child: [r16247]