Changed so model_plugin to use CWD