Added log capability