Working with external types