Removed unused variable definition.
Added support for metrics identifiers.
Added an option to allow users to opt out of metrics.