Port of source changes from https://github.com/sanger-pathogens/fastml