Added log buffer feature