Added code to probe function.