Move logging method
Tidy HTML slightly