Fixed require and added docstring.