Updated method and completed reflection for the code.