Removed synchronized access to screen memory and cleaned up dead code