Add Level class and changes to Cookie.