Minor: 0.0.31

Updates:
1. Change some function to const.