Code refactoring, #set_cookies method removed