Docstring for this function looks messy and is difficult to read/understand in the context of the actual arguments.