How to control anti-return behaviour