Change hardcoded value to messageproperties