Controller with basic functions.