Added ability to specify multiple segments to print when querying (fixes #22).