Segfaults prevented in utilities