Implemented boolean serialization