Using "util" module instead of "sys"