Implement IN and OUT