Updated to new nougat api