Fixes serialize relying on non-existent object.
Adds a function shorthand all the kids are raving about these days