Use ptr::null_mut() instead of ptr::mut_null() which is deprecated to remove compiler warinings