Added constness to parameters
updated STB, SRE, SES & ESE usage