This version allows the user to input a mask.
Merge branch 'master' of github.com:prestonlab/prex