Added panel handling.