Check for memory limit, solved issue (#69)