Break down large functions into smaller ones and add comments.
Break down large functions into smaller ones and add comments.