Re-arranged declaration order for robustness.