Use callback for getDependencies implementation