Added BaseController inheritance for future extensibility.