ID generation and FD storage