Style
Add some logs and check preferences method