Implemented a much simpler variable preservation system.