Added basic support for delegation.