Updates so code works with API Level 14