Avoid modifying the input