Add Support for ICS

Changed only a few codes. It works well on ICS