Inverse distance and flashing tutorial