Added separate class for delegates.