Code pre-planning