Added initial support for gap analysis.