Adding controller to handle processes