Function can get run from entity