Fast redraw of pads.
Code improvements.