Restructure optimization module