Quick and dirty hack for id generation