Update methods signature docstring and remove unused variable