Changed logger to puts