Add tern support.