Compatability for old sdk versions