Add docstring (i know this isn't your fault, it's probably mine, but might as well while you're here :) )