Adding functions to memory object prototypes seems to cause memory loading error.