Used reflection to make a single model wrapper function