Function getController