Fix leak variable and add cozy option