Preprocessing measurements