References and CodeBlock binding on creation