Bad unserialization resilience + getNewOutput(&) method