Simplified autowoot function to ensure it always works.