this function is in Optickle.