Scripts for lazy referencing