Function to get archive per needs.