Added log management