Measurement while drilling instrument