Allow setting repack flags

Closes issue #6