Added naive imlementation.