A little planning can save you money and troubleshooting.