Added log clearing and example