Advanced version of BwaWrapper