Avoid warning about implementing deprecated method