Moves the check for low memory to ramChanged