Added controllers and functions.