Added copyMethod and copyParameter.