Helper method.