Collection: Refactored the code for readability.