Better use of reflection