Avoid accidental calling of functions during iteration