Added draw handling.