Declare functions const/static where possible