Dummy but better implementation of man-in-the-middle