Preserving Object prototypes