Add tern mode settings