Add library code to support reflection calls