Bug fix. Was giving inaccurate results.