Added support for direct linking.