ReOrganized Code
Changed parameter name to for clarification