Inline functions in Port module