Adding topics working

Code fully functional in BWB sandbox.