Break out collect function