Just some private utils for reuse