Added basic plot statistics tracking.