Added gain measurement tool.