Working Intake/Outtake code