Refined methods for better type safety.