Lambda expression for constructors and method calls now seem to work somehow. ModifyDependencyBy is broken.
Commented out the ModifyDependencyBy functionality, because it is broken with lambdas.