Added a filename attribute to TEs.