Added __sleep() and __wakeup() magic methods