Average based detection is now functional.