Made the pain view to work.