Using prepare function to extract package content