A docstring would help, especially to explain the "+1"