Added basic MVC function.