windowPain added.