Dynamically inject dependencies