Adding some const, as per Artur Skawina advice.