Dealing with external resources