Collapse code for easier readability