Simplified constructor.