Added propper memory check for updates.