Use appropriate call for OS version