This method should be const, sorry about not specifying that.