Some code refactoring. Commenting out feedbackloop part. Cache is
working now.