Enhanced security. Entry/Exit callbacks