Translates hardcode in function