Removed the double brackets in the memory check as they appeared to be breaking this on some systems