Add direction checking for translation ports