Working version with correct log
Changed some Prints for loggin