Add a constant helper function to avoid unwanted side effects