Added constructor for log output