Tidied up example.