Added paint functionality.