Added basic support for targetprofile in bufferagent