Added ID Generator Algorithm