Add controller funtionality.