GetId function is reformatted