Optimized enterance into functions