UPDATE: docstring and example of usage