Moved the get collection function