Optimized restrictions

Optimized the restriction, no more list generation every teleport.