Adding reflection, as used in flysoft-team's fork (commit 6faf85133294b114ffa79f0e4f055b1ab4b49d61).