Nevermind, this won't work as dependencies are only loaded afterwards. My bad, will go and bang head into wall now.