Added utility function for testing