Fixed all API level issues.