Using an idiom compatible with both 1.8 and 1.9