Resolve warning regarding missing optional method