Converted ep_type to endpoint