Relaxed const requirement since we write to the expected output variable