Adding tern files