The magic functions __sleep and __wakeup