Modified memory check to work with spigot. TODO: Needs modularity.