Preparing resources