Tested on real LCD. Works.
removed some stuff