Restore function variables :)