Added utility function.