Huge thanks to author of the page n4r1b
Smart App Control Internals (Part 1)