Changed sout to log