Merged T and L functions- needed to reset in old location due to function set up