Added support for booleans and remembering values.