Make gen-pass more flexible

Signed-off-by: Mike Detwiler <mike.detwiler@gmail.com>