Added basic stub implmentation for delegates.
Added implementation of delegates.