Improved version of Entry/Exit alghorythm.