Data collection implemented but buggy.