Added a docstring and adhere to PEP333.