Made memory 'safer' by including a MemoryError error type.