Improved usage of 4.3 APIs

Tweaked your code a little