Keep directories
Use local variable to remove duplication
Evaluate code within window context