Added features for auto copying of referenced functions/variables in code