Trying to reduce reflection usage, not sure if it will work