Implemented the FX based pain flashing.