Using nonlocal
Placeholders refactoring