Added localize function (uhh what?)