Added utility function