Extract sent capturing into its own file