Please add JavaDocs that explains the input and the parameters.