Updated Titanium class to 3.1 API