Clear warnings and fix style.