added UseConst to add const to all read only variables in a executable part