Prepare dependencies for model