Utils extracted from Supersonic project