Add check if we were able to access buffer address