Add shared variable to method signatures.