Implements controller interface