Extract IN/OUT direction (not used yet)