Changes made for Compatibility Purpose. 
Working with API 10 or Above.