Added utility code.