Removed todos
Updated function docstring to reflect its role