Added usage of reflection factory