Cleaned up example code.