Swift utilities.