Re-described how the function reads and processes input after code was refactored last.