Move method definition
Add docstrings