Add entities and modes
Add the mongoose dependence