Routine IN & OUT