Tree Widget functionality for categorisation, still testing.