Implement shared variables.