Fix attributes and change how cookbook is used