Refactored and simplified cookbook