Optimizing method
Updating docstrings