Outsource SCP code into its own file. Add CSV feature