Changed implementation for recommendation