Added gain analysis tool.