Removed pain flag stuff