Added support for buffer linking.