Button code
merge button and flash code
Logging