Forking from https://bitbucket.org/nclarkekb/jwat