Fixed scrolling, debug logs and some other stuff