Add optional instance selection and fix sorting of hash data.
Add spec tests for file owner.