New prgrs code, not used as I haven't tested this on BSD yet.