Use command pattern, enable log, fix style-check issues.