Adding dojo functionality