Reduced code clutter a bit.